﻿#region 命名空间

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using WinnerCMS.BLL;
using WinnerCMS.Model;

#endregion

namespace WinnerCMS.WebUI.Admin.Controllers
{
    public class MenuController : ApiController
    {
        [HttpGet]
        public IList<TreeNode> GetTreeData([FromUri] string id)
        {
            return new MenuManage().GetTreeData(id, "CategoryTree");
        }

        [HttpGet]
        public IList<TreeNode> MenuData([FromUri] string id)
        {
            return new MenuManage().GetTreeData(id);
        }
    }
}